function concat(arr1, args) {
    const result = [...arr1]
    args.forEach(item => {
        if (Array.isArray(item)) {
            result.push(...item)
        } else {
            result.push(item)
        }
    });
    return result
}